package com.xagcdx.group1.dao;

import com.xagcdx.group1.bean.User;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author grou1
 * @since 2020-06-09
 */
@Repository
@Mapper
public interface UserMapper extends BaseMapper<User> {

	
	User login(String uname);
    List<User> userListPage(@Param("page") Integer page, @Param("size") Integer size, @Param("uname")String uname , @Param("rid")String rid);
    Integer counts(@Param("uname") String uname ,@Param("rid")String rid);
    boolean removeUserInfo(String uid);
    boolean updateUserInfo(@Param("uid")String uid,@Param("uname") String uname,@Param("account")String account);
    boolean updateUserRole(@Param("uid")String uid ,@Param("rid")String rid);
    boolean addUserInfo(@Param("uname")String uname,@Param("account")String account);
    boolean addUserRole(@Param("uid")String uid,@Param("rid")String rid);
    User selectOneUser(String uname);
    String getRid(String uname);
    String getlastuser();
    boolean savelog(@Param("name")String name,@Param("times")String times);
}
